generic
package v8.Class_Handle.Class_Local is
   type Local_Object (<>) is new Handle_Object with private;
   type Local is access all Local_Object;
   -- A light-weight stack-allocated object handle.  All operations
   -- that return objects from within v8 return them in local handles.  They
   -- are created within HandleScopes, and all local handles allocated within a
   -- handle scope are destroyed when the handle scope is destroyed.  Hence it
   -- is not necessary to explicitly deallocate local handles.

   function Create
     (Source         : Pointer;
      Is_Heap_Object : Boolean := True
     ) return Local;

private
   type Local_Object is new Handle_Object with null record;
end v8.Class_Handle.Class_Local;
